﻿$(document).ready(function() {
});
jQuery.extend({
    AddFav: function(url, title) {
        window.external.addFavorite(url, title);
    },
	Copy: function(t) {
		window.clipboardData.setData('Text',t);
	},
	GetUrl: function() {
	    var url = 'http://' + location.hostname + '/';
	    var url2 = location.pathname.split('/');
	    for(i = 0; i < url2.length; i++) {
	    	if(url2[i] == 'Cartoon') {
	    		i=url2.length-1;
	    		continue;
	    	}
	    	url += url2[i];
	    }
	    return url;
	}
});